<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('数据采集')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="analysis-alldetails-form">
                <div class="select-list" >
                    <ul>
                        <li>
                            <label>登录用户名： </label>
                            <input type="text" id="u_name" placeholder="新客服系统用户名"   name="u_name"  value="KF45159013" />
                            <label>登录密码： </label>
                            <input type="password" id="u_pwd" placeholder="新客服系统密码"   name="u_pwd"  value="123456789"/>
                        </li>
                        <li class="select-time">
                            <label>采集时间： </label>
                            <input type="text" class="time-input" id="startTime" placeholder="开始时间"  value="2019-11-04" name="startTime"/>
                            <span>-</span>
                            <input type="text" class="time-input" id="endTime" placeholder="结束时间" value="2019-11-04" name="endTime"/>
                        </li>

                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="query()"><i class="fa fa-search"></i>&nbsp;开始采集</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;时间重置</a>
                        </li>

                    </ul>
                </div>
            </form>
        </div>
        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-warning" onclick="$.table.exportExcel()" >
                <i class="fa fa-download"></i> 导出
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped " style="width:100%;" >
            <table id="bootstrap-table" ></table>
        </div>

    </div>
</div>


<th:block th:include="include :: footer" />
<th:block th:include="include :: echarts-js" />
<script th:inline="javascript">
    var datas = [[${@dict.getType('sys_common_status')}]];
    var prefix = ctx + "dataanalysis/problems";
    query();
    function query() {
        var options = {
            url: prefix+"/dataCj",
            exportUrl: prefix + "/export",
            sortName: "managerGrid",
            sortOrder: "desc",
            modalName: "数据爬虫",
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            columns: [
                {
                    field: 'managerGrid',
                    title: '经营单元'
                },
                {
                    field: 'sheet_code',
                    title: '投诉单号',
                    sortable: true
                },
                {
                    field: 'business_no',
                    title: '业务号码'
                },
                {
                    field: 'submit_way',
                    title: '投诉渠道',
                    sortable: true
                },
                {
                    field: 'code_sheet_type_id',
                    title: '客户端问题分类',
                    sortable: true,
                    visible:false
                },
                {
                    field: 'code_business_type',
                    title: '业务类型',
                    sortable: true
                },
                {
                    field: 'sheet_status',
                    title: '工单状态',
                    sortable: true


                },
                {
                    field: 'serv_content',
                    title: '受理内容',
                    sortable: true

                }]
        };

        $.table.init(options);
        $.table.search();
    };

</script>
</body>
</html>